VT-d: Make ACPI DMAR parsing more robust
authorKeir Fraser <keir.fraser@citrix.com>
Thu, 3 Apr 2008 10:19:50 +0000 (11:19 +0100)
committerKeir Fraser <keir.fraser@citrix.com>
Thu, 3 Apr 2008 10:19:50 +0000 (11:19 +0100)
commit5fb83a5dbdfc0650fb81e0536d086f91eaa5f279
tree853126b520d5446981b6a64559049cf835cd1ee9
parent37f0296c5b2567b18294c0d57934a70636aa3735
VT-d: Make ACPI DMAR parsing more robust

Parsing ACPI related VT-d tables may cause infinite loop due to u8
value wraparound.  Also add sanity check on table length entry.

Signed-off-by: Espen Skoglund <espen.skoglund@netronome.com>
xen/drivers/passthrough/vtd/dmar.c